import Vue from 'vue'
import Router from 'vue-router'
import Index from '@/views/index'
import SubTwoDetail from '@/views/subTwoDetail/index'
import BuyCourse from '@/views/buyCourse/index'
import BuyCourseDetail from '@/views/buyCourseDetail/index'
import GoodCourse from '@/views/goodCourse/index'
import GoodCourseDetail from '@/views/goodCourseDetail/index'
import ConfirmOrder from '@/views/confirmOrder/index'
import OrderDetail from '@/views/orderDetail/index'
import SpecialExercises from '@/views/specialExercises/index'
import ChapterExercise from '@/views/chapterExercise/index'
import ExamExercise from '@/views/examExercise/index'
import MockExam from '@/views/mockExam/index'
import ExamScores from '@/views/examScores/index'
import AboutUs from '@/views/aboutUs/index'
import AccountInfo from '@/views/accountInfo/index'
import questionWrong from '@/views/questionWrong/index.vue'
import myOrder from '@/views/myOrder/index.vue'
import redoTopic from '@/views/questionWrong/redoTopic'
import orderPay from '@/views/orderPay/index'



Vue.use(Router)

export default new Router({
  routes: [
    // {
    //   path: '',
    //   redirect: '/',
    // },
    {
      path: '/',
      name: 'Index',
      component: Index
    },
    {
      path: '/SubTwoDetail',
      name: 'SubTwoDetail',
      component: SubTwoDetail
    },
    {
      path: '/BuyCourse',
      name: 'BuyCourse',
      component: BuyCourse
    },
    {
      path: '/BuyCourseDetail',
      name: 'BuyCourseDetail',
      component: BuyCourseDetail
    }, 
    {
      path: '/GoodCourse',
      name: 'GoodCourse',
      component: GoodCourse
    },
    {
      path: '/GoodCourseDetail',
      name: 'GoodCourseDetail',
      component: GoodCourseDetail
    },
    {
      path: '/ConfirmOrder',
      name: 'ConfirmOrder',
      component: ConfirmOrder
    },
    {
      path: '/OrderDetail',
      name: 'OrderDetail',
      component: OrderDetail
    },
    {
      path: '/SpecialExercises',
      name: 'SpecialExercises',
      component: SpecialExercises
    },
    {
      path: '/ChapterExercise',
      name: 'ChapterExercise',
      component: ChapterExercise
    },
    {
      path: '/ExamExercise',
      name: 'ExamExercise',
      component: ExamExercise
    },
    {
      path: '/MockExam',
      name: 'MockExam',
      component: MockExam
    },
    {
      path: '/ExamScores',
      name: 'ExamScores',
      component: ExamScores
    },
    {
      path: '/AboutUs',
      name: 'AboutUs',
      component: AboutUs
    },
    {
      path: '/AccountInfo',
      name: 'AccountInfo',
      component: AccountInfo
    },
    {
      path: '/questionWrong',
      name: 'questionWrong',
      component: questionWrong
    },
    {
      path: '/myOrder',
      name: 'myOrder',
      component: myOrder
    },
    {
      path: '/redo_topic',
      name: 'redoTopic',
      component: redoTopic
    }
    ,
    {
      path: '/orderPay',
      name: 'orderPay',
      component: orderPay
    }
  ]
})
